﻿namespace AGooday.AgChat.Api.Models
{
    public class Group
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Avatar { get; set; }
        public int CreatorId { get; set; }
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;

        public virtual User Creator { get; set; }
        public virtual ICollection<GroupMember> Members { get; set; }
        public virtual ICollection<Message> Messages { get; set; }
    }
}
